package com.cdtye.itps.cms.dao.detect;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.cdtye.common.mongocore.base.BaseEntity;
import com.cdtye.common.webcore.util.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: wang lei
 * @Date: 2021/10/10 11:22
 * @Description:
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Document(collection = "JCJC_PLAN_DETAIL_MONGO")
@ApiModel(value = "详细计划表", description = "详细计划表")
public class JcjcPlanDetailMongo extends BaseEntity {

    @ApiModelProperty(value = "计划编码(唯一)")
    private String planCode;

    @ApiModelProperty(value = "单位id")
    private String deptId;

    @ApiModelProperty(value = "c类型")
    private String cType;

    @ApiModelProperty(value = "编制人")
    private String preparedBy;

    @ApiModelProperty(value = "编制时间")
    @DateTimeFormat(pattern = DateUtil.DATETIME_FORMAT)
    @JSONField(format = DateUtil.DATETIME_FORMAT)
    private Date preparedDate;

    @ApiModelProperty(value = "编制单位")
    private String preparedDeptId;

    @ApiModelProperty(value = "计划检测日期")
    @DateTimeFormat(pattern = DateUtil.DATETIME_FORMAT)
    @JSONField(format = DateUtil.DATETIME_FORMAT)
    private Date planDate;

    @ApiModelProperty(value = "线路id")
    private String lineId;

    @ApiModelProperty(value = "行别id")
    private String directionId;

    @ApiModelProperty(value = "计划起站")
    private String planBegin;

    @ApiModelProperty(value = "计划止站")
    private String planEnd;

    @ApiModelProperty(value = "计划检测里程")
    private double planMileage;

    @ApiModelProperty(value = "计划类型")
    private String planType;

    @ApiModelProperty(value = "计划执行部门")
    private String planDepartmentId;

    @ApiModelProperty(value = "检测设备")
    private String equipment;

    @ApiModelProperty(value = "计划执行人员")
    private String planExecutor;

    @ApiModelProperty(value = "计划车次")
    private String planTrainNum;

    @ApiModelProperty(value = "附件")
    private String enclosure;

    @ApiModelProperty(value = "编制备注")
    private String remark;

    @ApiModelProperty(value = "审批人")
    private String approve;

    @ApiModelProperty(value = "审批时间")
    @DateTimeFormat(pattern = DateUtil.DATETIME_FORMAT)
    @JSONField(format = DateUtil.DATETIME_FORMAT)
    private Date approvelTime;

    @ApiModelProperty(value = "审批结论")
    private String conclusion;

    @ApiModelProperty(value = "审批意见")
    private String opinion;

    @ApiModelProperty(value = "实际执行部门")
    private String actualDepartment;

    @ApiModelProperty(value = "实际执行日期")
    @DateTimeFormat(pattern = DateUtil.DATETIME_FORMAT)
    @JSONField(format = DateUtil.DATETIME_FORMAT)
    private Date actualDate;

    @ApiModelProperty(value = "实际起站")
    private String actualBegin;

    @ApiModelProperty(value = "实际止站")
    private String actualEnd;

    @ApiModelProperty(value = "实际检测人员")
    @TableField("ACTUAL_TESTER")
    private String actualTester;

    @ApiModelProperty(value = "实际车次")
    private String actualTraubNum;

    @ApiModelProperty(value = "实际检测里程")
    private double actualMileage;

    @ApiModelProperty(value = "实际备注")
    private String actualRemark;

    @ApiModelProperty(value = "完成度")
    private double completeRate;

    @ApiModelProperty(value = "铁路类型")
    private String railType;


}
